home *** CD-ROM | disk | FTP | other *** search
- property piMaxWidth
-
- on beginSprite me
- set piMaxWidth to the width of sprite 68
- add(the actorList, me)
- end
-
- on endSprite me
- deleteOne(the actorList, me)
- end
-
- on stepFrame me
- set liSWApercent to integer(the percentPlayed of member "SWAaudio")
- set liNewWidth to piMaxWidth * liSWApercent / 100
- if not liNewWidth then
- set liNewWidth to 1
- end if
- set the width of sprite the spriteNum of me to liNewWidth
- sendSprite(70, #setDisplay, liSWApercent)
- end
-